#!/bin/bash
clear
echo "======================================"
echo "======================================"
echo "======================================"
for host in zk1 zk2 zk3
do
  ssh $host "source /etc/profile;/root/apps/zookeeper-3.4.5/bin/zkServer.sh start"
done
echo "======================================"
echo "======================================"
echo "======================================"


#for host in zk1 zk2 zk3
#do
#  ssh $host "source /etc/profile;/root/apps/zookeeper-3.4.5/bin/zkServer.sh status"
#done
